package cn.itsource.configuration;

import cn.itsource.config.WechatConfig;
import cn.itsource.wechatTemplate.WechatLoginTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(WechatConfig.class)
public class WechatLoginAutoConfiguration {

    @Bean
    public WechatLoginTemplate getWechatLoginTemplate(WechatConfig wechatConfig){
        return  new WechatLoginTemplate(wechatConfig);

    }
}
